package com.zhongjianjian.leguansuo;

import com.zhongjianjian.leguansuo.service.TestLgService;
import com.zhongjianjian.redisLock.entity.TestStock;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * 作者: LCG
 * 日期: 2020/2/22 00:16
 * 描述:
 */

@RestController
public class LeGuanSuoController {

    @Autowired
    private TestLgService testLgService;

    @RequestMapping("/lg/stock")
    public void testStock(@RequestBody TestStock testStock){

        testLgService.testStock(testStock);

    }

}
